package com.eliza.music.activity

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier
import com.eliza.music.nav.video.VideoHomePage
import com.eliza.music.ui.compoment.LayoutRootScreen
import com.eliza.music.ui.theme.MusicTheme
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class BVideoActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            MusicTheme {
                Surface(
                    modifier = Modifier.fillMaxSize(),
                    color = MaterialTheme.colorScheme.background
                ) {
                    LayoutRootScreen(routes = VideoHomePage.entries) { nav, build ->
                        VideoHomePage.RegisterRoute(nav, build)
                    }
                }
            }
        }
    }

}

